﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartLib.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class TableColumnAttribute : Attribute
    {
        /// <summary>
        /// 忽略更新
        /// </summary>
        public bool IgnoreUpdate { get; set; }

        /// <summary>
        /// 忽略插入
        /// </summary>
        public bool IgnoreInsert { get; set; }

        /// <summary>
        /// 忽略选择
        /// </summary>
        public bool IgnoreSelect { get; set; }

        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName { get; set; }

        public TableColumnAttribute(string columnName)
        {
            ColumnName = columnName;
        }

        public TableColumnAttribute()
        {
        }
    }
}
